﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace BMSQ.Admin.GoodsType2
{
    public partial class Show : PageBase
    {
        public string strid = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
                {
                    strid = Request.Params["id"];
                    string GT2_ID = strid;
                    ShowInfo(GT2_ID);
                }
            }
        }

        private void ShowInfo(string GT2_ID)
        {
            BLL.Goods_Type2 bll = new BLL.Goods_Type2();
            Model.Goods_Type2 model = bll.GetModel(GT2_ID);
            this.lblGT2_ID.Text = model.GT2_ID;
            this.lblGT2_Name.Text = model.GT2_Name;
            this.lblGT1_ID.Text = model.GT1_ID;

        }
    }
}